home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / HyperCuber Source / HyperCuber 2.0 Source.sit / HyperCuber 2.0 Source / CPrimitive.h < prev    next >
Text File  |  1994-04-27  |  718b  |  26 lines

  1. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. //| This file contains the interface to the CPrimitive class.  A CPrimitive
  3. //| is a graphics primitive (like a line, a point, or a polygon).
  4. //|________________________________________________________________________________
  5.  
  6. #pragma once
  7. #include <CObject.h>
  8.  
  9. CLASS CList;
  10.  
  11. class CPrimitive : public CObject
  12.     {
  13.     
  14.     CList            *colors;                //  The colors list
  15.  
  16.   public:
  17.  
  18.     short            color_index;            //  The color of this primitive (as index in color list)
  19.  
  20.     void            IPrimitive(CList *colors);
  21.     virtual void    Dispose(void);
  22.     virtual void    Draw(RGBColor *override_color, Point **screen_vertices,
  23.                             Rect *clip_rect, Boolean fAntialias);
  24.  
  25.     };
  26.